<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>产品列表展示</title>
    <link rel="stylesheet" href="styles.css">
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
</head>
<body>
    <header>
        <h1>精选产品展示</h1>
        <p>发现我们精心挑选的优质产品</p>
    </header>

    <main>
        <div class="filter-bar">
            <button class="filter-btn active" data-category="all">全部</button>
            <button class="filter-btn" data-category="electronics">电子产品</button>
            <button class="filter-btn" data-category="clothing">服装</button>
            <button class="filter-btn" data-category="home">家居</button>
        </div>

        <div class="product-grid" id="productGrid">
            <!-- 产品卡片将通过JavaScript动态生成 -->
        </div>
    </main>

    <!-- 产品详情模态框 -->
    <div class="modal" id="productModal">
        <div class="modal-content">
            <span class="close">&times;</span>
            <div class="modal-body">
                <img id="modalImage" src="" alt="">
                <div class="modal-info">
                    <h2 id="modalTitle"></h2>
                    <p class="price" id="modalPrice"></p>
                    <p id="modalDescription"></p>
                    <button class="btn-primary">立即购买</button>
                </div>
            </div>
        </div>
    </div>

    <footer>
        <p>&copy; 2024 产品展示平台. 保留所有权利.</p>
    </footer>

    <script src="script.js"></script>
</body>
</html>
